package com.party.model;

import com.party.common.PageListNum;

import java.util.ArrayList;
import java.util.List;

public class User2ExamtestExample  extends PageListNum {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public User2ExamtestExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andExamidIsNull() {
            addCriterion("examId is null");
            return (Criteria) this;
        }

        public Criteria andExamidIsNotNull() {
            addCriterion("examId is not null");
            return (Criteria) this;
        }

        public Criteria andExamidEqualTo(Integer value) {
            addCriterion("examId =", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidNotEqualTo(Integer value) {
            addCriterion("examId <>", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidGreaterThan(Integer value) {
            addCriterion("examId >", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidGreaterThanOrEqualTo(Integer value) {
            addCriterion("examId >=", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidLessThan(Integer value) {
            addCriterion("examId <", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidLessThanOrEqualTo(Integer value) {
            addCriterion("examId <=", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidIn(List<Integer> values) {
            addCriterion("examId in", values, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidNotIn(List<Integer> values) {
            addCriterion("examId not in", values, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidBetween(Integer value1, Integer value2) {
            addCriterion("examId between", value1, value2, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidNotBetween(Integer value1, Integer value2) {
            addCriterion("examId not between", value1, value2, "examid");
            return (Criteria) this;
        }

        public Criteria andExamtestidIsNull() {
            addCriterion("examTestId is null");
            return (Criteria) this;
        }

        public Criteria andExamtestidIsNotNull() {
            addCriterion("examTestId is not null");
            return (Criteria) this;
        }

        public Criteria andExamtestidEqualTo(Integer value) {
            addCriterion("examTestId =", value, "examtestid");
            return (Criteria) this;
        }

        public Criteria andExamtestidNotEqualTo(Integer value) {
            addCriterion("examTestId <>", value, "examtestid");
            return (Criteria) this;
        }

        public Criteria andExamtestidGreaterThan(Integer value) {
            addCriterion("examTestId >", value, "examtestid");
            return (Criteria) this;
        }

        public Criteria andExamtestidGreaterThanOrEqualTo(Integer value) {
            addCriterion("examTestId >=", value, "examtestid");
            return (Criteria) this;
        }

        public Criteria andExamtestidLessThan(Integer value) {
            addCriterion("examTestId <", value, "examtestid");
            return (Criteria) this;
        }

        public Criteria andExamtestidLessThanOrEqualTo(Integer value) {
            addCriterion("examTestId <=", value, "examtestid");
            return (Criteria) this;
        }

        public Criteria andExamtestidIn(List<Integer> values) {
            addCriterion("examTestId in", values, "examtestid");
            return (Criteria) this;
        }

        public Criteria andExamtestidNotIn(List<Integer> values) {
            addCriterion("examTestId not in", values, "examtestid");
            return (Criteria) this;
        }

        public Criteria andExamtestidBetween(Integer value1, Integer value2) {
            addCriterion("examTestId between", value1, value2, "examtestid");
            return (Criteria) this;
        }

        public Criteria andExamtestidNotBetween(Integer value1, Integer value2) {
            addCriterion("examTestId not between", value1, value2, "examtestid");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("uId is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uId is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Integer value) {
            addCriterion("uId =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Integer value) {
            addCriterion("uId <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Integer value) {
            addCriterion("uId >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uId >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Integer value) {
            addCriterion("uId <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Integer value) {
            addCriterion("uId <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Integer> values) {
            addCriterion("uId in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Integer> values) {
            addCriterion("uId not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Integer value1, Integer value2) {
            addCriterion("uId between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Integer value1, Integer value2) {
            addCriterion("uId not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andIsrightIsNull() {
            addCriterion("isRight is null");
            return (Criteria) this;
        }

        public Criteria andIsrightIsNotNull() {
            addCriterion("isRight is not null");
            return (Criteria) this;
        }

        public Criteria andIsrightEqualTo(Integer value) {
            addCriterion("isRight =", value, "isright");
            return (Criteria) this;
        }

        public Criteria andIsrightNotEqualTo(Integer value) {
            addCriterion("isRight <>", value, "isright");
            return (Criteria) this;
        }

        public Criteria andIsrightGreaterThan(Integer value) {
            addCriterion("isRight >", value, "isright");
            return (Criteria) this;
        }

        public Criteria andIsrightGreaterThanOrEqualTo(Integer value) {
            addCriterion("isRight >=", value, "isright");
            return (Criteria) this;
        }

        public Criteria andIsrightLessThan(Integer value) {
            addCriterion("isRight <", value, "isright");
            return (Criteria) this;
        }

        public Criteria andIsrightLessThanOrEqualTo(Integer value) {
            addCriterion("isRight <=", value, "isright");
            return (Criteria) this;
        }

        public Criteria andIsrightIn(List<Integer> values) {
            addCriterion("isRight in", values, "isright");
            return (Criteria) this;
        }

        public Criteria andIsrightNotIn(List<Integer> values) {
            addCriterion("isRight not in", values, "isright");
            return (Criteria) this;
        }

        public Criteria andIsrightBetween(Integer value1, Integer value2) {
            addCriterion("isRight between", value1, value2, "isright");
            return (Criteria) this;
        }

        public Criteria andIsrightNotBetween(Integer value1, Integer value2) {
            addCriterion("isRight not between", value1, value2, "isright");
            return (Criteria) this;
        }

        public Criteria andExamansweridsIsNull() {
            addCriterion("examAnswerIds is null");
            return (Criteria) this;
        }

        public Criteria andExamansweridsIsNotNull() {
            addCriterion("examAnswerIds is not null");
            return (Criteria) this;
        }

        public Criteria andExamansweridsEqualTo(String value) {
            addCriterion("examAnswerIds =", value, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andExamansweridsNotEqualTo(String value) {
            addCriterion("examAnswerIds <>", value, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andExamansweridsGreaterThan(String value) {
            addCriterion("examAnswerIds >", value, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andExamansweridsGreaterThanOrEqualTo(String value) {
            addCriterion("examAnswerIds >=", value, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andExamansweridsLessThan(String value) {
            addCriterion("examAnswerIds <", value, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andExamansweridsLessThanOrEqualTo(String value) {
            addCriterion("examAnswerIds <=", value, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andExamansweridsLike(String value) {
            addCriterion("examAnswerIds like", value, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andExamansweridsNotLike(String value) {
            addCriterion("examAnswerIds not like", value, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andExamansweridsIn(List<String> values) {
            addCriterion("examAnswerIds in", values, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andExamansweridsNotIn(List<String> values) {
            addCriterion("examAnswerIds not in", values, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andExamansweridsBetween(String value1, String value2) {
            addCriterion("examAnswerIds between", value1, value2, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andExamansweridsNotBetween(String value1, String value2) {
            addCriterion("examAnswerIds not between", value1, value2, "examanswerids");
            return (Criteria) this;
        }

        public Criteria andSpare1IsNull() {
            addCriterion("spare1 is null");
            return (Criteria) this;
        }

        public Criteria andSpare1IsNotNull() {
            addCriterion("spare1 is not null");
            return (Criteria) this;
        }

        public Criteria andSpare1EqualTo(String value) {
            addCriterion("spare1 =", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1NotEqualTo(String value) {
            addCriterion("spare1 <>", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1GreaterThan(String value) {
            addCriterion("spare1 >", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1GreaterThanOrEqualTo(String value) {
            addCriterion("spare1 >=", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1LessThan(String value) {
            addCriterion("spare1 <", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1LessThanOrEqualTo(String value) {
            addCriterion("spare1 <=", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1Like(String value) {
            addCriterion("spare1 like", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1NotLike(String value) {
            addCriterion("spare1 not like", value, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1In(List<String> values) {
            addCriterion("spare1 in", values, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1NotIn(List<String> values) {
            addCriterion("spare1 not in", values, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1Between(String value1, String value2) {
            addCriterion("spare1 between", value1, value2, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare1NotBetween(String value1, String value2) {
            addCriterion("spare1 not between", value1, value2, "spare1");
            return (Criteria) this;
        }

        public Criteria andSpare2IsNull() {
            addCriterion("spare2 is null");
            return (Criteria) this;
        }

        public Criteria andSpare2IsNotNull() {
            addCriterion("spare2 is not null");
            return (Criteria) this;
        }

        public Criteria andSpare2EqualTo(String value) {
            addCriterion("spare2 =", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2NotEqualTo(String value) {
            addCriterion("spare2 <>", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2GreaterThan(String value) {
            addCriterion("spare2 >", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2GreaterThanOrEqualTo(String value) {
            addCriterion("spare2 >=", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2LessThan(String value) {
            addCriterion("spare2 <", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2LessThanOrEqualTo(String value) {
            addCriterion("spare2 <=", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2Like(String value) {
            addCriterion("spare2 like", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2NotLike(String value) {
            addCriterion("spare2 not like", value, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2In(List<String> values) {
            addCriterion("spare2 in", values, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2NotIn(List<String> values) {
            addCriterion("spare2 not in", values, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2Between(String value1, String value2) {
            addCriterion("spare2 between", value1, value2, "spare2");
            return (Criteria) this;
        }

        public Criteria andSpare2NotBetween(String value1, String value2) {
            addCriterion("spare2 not between", value1, value2, "spare2");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }

        public Criteria andExamansweridsLikeInsensitive(String value) {
            addCriterion("upper(examAnswerIds) like", value.toUpperCase(), "examanswerids");
            return this;
        }

        public Criteria andSpare1LikeInsensitive(String value) {
            addCriterion("upper(spare1) like", value.toUpperCase(), "spare1");
            return this;
        }

        public Criteria andSpare2LikeInsensitive(String value) {
            addCriterion("upper(spare2) like", value.toUpperCase(), "spare2");
            return this;
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}